<template>
  <view class="cash-audit">
    <view class="pictrue">
      <image src="https://judou.ylsp.vip/file/static/images/examine.png" />
    </view>
	<view class="money">￥{{ money }}</view>
    <view class="tip">提现申请已提交，等待人工审核</view>
    <view class="time">{{ time }}</view>
    <view class="bnt bg-color-red" @click="goUserPromotion()">好的</view>
  </view>
</template>
<script>
export default {
  name: "CashAudit",
  components: {},
  props: {},
  data: function() {
    return {
      time: "",
	  money:''
    };
  },
  mounted: function() {
	this.money = this._route.query.money;
    let myData = new Date();
	let year = myData.getFullYear();
	let month = myData.getMonth() + 1;
	let day = myData.getDate();
    this.time = year + '-' + month + '-' + day;
  },
  methods: {
    goUserPromotion() {
      // #ifdef H5
      const pages = getCurrentPages()
      if (pages.length > 1) {
      	uni.navigateBack(1)
      	return;
      }
      //使用vue-router返回上一级
      let a = this.$router.go(-1)
      if (a == undefined) {
      	//重新定向跳转页面
      	uni.reLaunch({
      		url: '/pages/home/index'
      	})
      }
      return;
      // #endif
      uni.navigateBack(1)
    }
  }
};
</script>
